// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.jrsystems.fleet.request;
/**
 * @see com.jrsystems.fleet.request.TransportRequest
 */
public class TransportRequestDaoImpl
    extends com.jrsystems.fleet.request.TransportRequestDaoBase
{
    /**
     * @see com.jrsystems.fleet.request.TransportRequestDao#searchByCriteria(com.jrsystems.fleet.request.vo.TransportRequestSearchCriteria)
     */
    protected com.jrsystems.fleet.request.vo.TransportRequestVO[] handleSearchByCriteria(com.jrsystems.fleet.request.vo.TransportRequestSearchCriteria criteria)
    {
        // @todo implement public com.jrsystems.fleet.request.vo.TransportRequestVO[] handleSearchByCriteria(com.jrsystems.fleet.request.vo.TransportRequestSearchCriteria criteria)
        return null;
}

    /**
     * @see com.jrsystems.fleet.request.TransportRequestDao#toTransportRequestVO(com.jrsystems.fleet.request.TransportRequest, com.jrsystems.fleet.request.vo.TransportRequestVO)
     */
    public void toTransportRequestVO(
        com.jrsystems.fleet.request.TransportRequest source,
        com.jrsystems.fleet.request.vo.TransportRequestVO target)
    {
        // @todo verify behavior of toTransportRequestVO
        super.toTransportRequestVO(source, target);
        // WARNING! No conversion for target.tripRequest (can't convert source.getTripRequest():com.jrsystems.fleet.trip.TripRequest to com.jrsystems.fleet.trip.vo.TripRequestVO
        // WARNING! No conversion for target.imprestRequest (can't convert source.getImprestRequest():com.jrsystems.fleet.request.ImprestRequest to com.jrsystems.fleet.request.vo.ImprestRequestVO
    }


    /**
     * @see com.jrsystems.fleet.request.TransportRequestDao#toTransportRequestVO(com.jrsystems.fleet.request.TransportRequest)
     */
    public com.jrsystems.fleet.request.vo.TransportRequestVO toTransportRequestVO(final com.jrsystems.fleet.request.TransportRequest entity)
    {
        // @todo verify behavior of toTransportRequestVO
        return super.toTransportRequestVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.jrsystems.fleet.request.TransportRequest loadTransportRequestFromTransportRequestVO(com.jrsystems.fleet.request.vo.TransportRequestVO transportRequestVO)
    {
        // @todo implement loadTransportRequestFromTransportRequestVO
        throw new java.lang.UnsupportedOperationException("com.jrsystems.fleet.request.loadTransportRequestFromTransportRequestVO(com.jrsystems.fleet.request.vo.TransportRequestVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.jrsystems.fleet.request.TransportRequest transportRequest = this.load(transportRequestVO.getId());
        if (transportRequest == null)
        {
            transportRequest = com.jrsystems.fleet.request.TransportRequest.Factory.newInstance();
        }
        return transportRequest;
        */
    }

    
    /**
     * @see com.jrsystems.fleet.request.TransportRequestDao#transportRequestVOToEntity(com.jrsystems.fleet.request.vo.TransportRequestVO)
     */
    public com.jrsystems.fleet.request.TransportRequest transportRequestVOToEntity(com.jrsystems.fleet.request.vo.TransportRequestVO transportRequestVO)
    {
        // @todo verify behavior of transportRequestVOToEntity
        com.jrsystems.fleet.request.TransportRequest entity = this.loadTransportRequestFromTransportRequestVO(transportRequestVO);
        this.transportRequestVOToEntity(transportRequestVO, entity, true);
        return entity;
    }


    /**
     * @see com.jrsystems.fleet.request.TransportRequestDao#transportRequestVOToEntity(com.jrsystems.fleet.request.vo.TransportRequestVO, com.jrsystems.fleet.request.TransportRequest)
     */
    public void transportRequestVOToEntity(
        com.jrsystems.fleet.request.vo.TransportRequestVO source,
        com.jrsystems.fleet.request.TransportRequest target,
        boolean copyIfNull)
    {
        // @todo verify behavior of transportRequestVOToEntity
        super.transportRequestVOToEntity(source, target, copyIfNull);
    }

}